﻿#pragma once

#include "Box.h"

typedef struct Man Man;

typedef BaseGameObject* (*ManMove)(Man*, UINT, MoveResult*);
typedef void (*ManStartDancing)(Man*);

// 小人
struct Man {
    HANDLE mCurrentImage1;  // 当前图片1
    HANDLE mCurrentImage2;  // 当前图片2
    HWND mGameBoard;        // 游戏区域
    HANDLE mImageLeft1;     // 左图片1
    HANDLE mImageLeft2;     // 左图片2
    HANDLE mImageRight1;    // 右图片1
    HANDLE mImageRight2;    // 右图片2
    HANDLE mImageUp1;       // 上图片1
    HANDLE mImageUp2;       // 上图片2
    Box* mParent;           // 父类对象

    ManMove move;
    ManStartDancing dancing;
};

BaseGameObject* New_Man(BaseGameObject*, HDC, HWND, GameObjectType, int, int);
